package com.telra.app.server2.config;

/**
 * Store all the cassandra config info.  Used in the Cassandra service, populated from the Zookeeper service.
 *
 * @see com.telra.app.server2.service.CassandraService
 * @see com.telra.app.server.ZooKeeperService
 *
 */
public class CassandraConfig {

    private String cassandraHost;
    private String cassandraPort;
    private String cassandraCluster;
    private String cassandraKeyspace;


    public String getCassandraHost() {
        return cassandraHost;
    }

    public void setCassandraHost(String cassandraHost) {
        this.cassandraHost = cassandraHost;
    }

    public String getCassandraPort() {
        return cassandraPort;
    }

    public void setCassandraPort(String cassandraPort) {
        this.cassandraPort = cassandraPort;
    }

    public String getCassandraCluster() {
        return cassandraCluster;
    }

    public void setCassandraCluster(String cassandraCluster) {
        this.cassandraCluster = cassandraCluster;
    }

    public String getCassandraKeyspace() {
        return cassandraKeyspace;
    }

    public void setCassandraKeyspace(String cassandraKeyspace) {
        this.cassandraKeyspace = cassandraKeyspace;
    }
    
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Host=");
        sb.append(cassandraHost);
        sb.append(",Port=");
        sb.append(cassandraPort);
        sb.append(",Cluster=");
        sb.append(cassandraCluster);
        sb.append(",Keyspace=");
        sb.append(cassandraKeyspace);
        return sb.toString();
    }
}
